package com.douleka.curd.mapper;

import com.douleka.curd.entity.SupplyCard;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.douleka.curd.utils.Result;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.List;

/**
 * <p>
 * 卡密供货订单 Mapper 接口
 * </p>
 *
 * @author hg
 * @since 2024-03-19
 */
public interface SupplyCardMapper extends BaseMapper<SupplyCard> {

    List<SupplyCard> getSupplyCardList(
            @Param("userId") BigInteger userId,
            @Param("cardNo") BigInteger cardNo,
            @Param("batchId") String batchId,
            @Param("area") String area,
            @Param("face") BigDecimal face,
            @Param("status") Integer status,
            @Param("startTime") String startTime,
            @Param("endTime") String endTime,
            @Param("productType") Integer productType,
            @Param("start") Integer start,
            @Param("pageSize") Integer pageSize
    );

    Integer getTotalCount(
            @Param("userId") BigInteger userId,
            @Param("cardNo")BigInteger cardNo,
            @Param("batchId")String batchId,
            @Param("area")String area,
            @Param("face")BigDecimal face,
            @Param("status")Integer status,
            @Param("startTime")String startTime,
            @Param("endTime")String endTime,
            @Param("productType")Integer productType
    );

}
